<template>
  <view>
    <view @tap="haha">点我</view>
    <view class="box" :animation="animatheightadd">点击动画</view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      animatheightadd: '', //剧情展开收起的动画
    };
  },
  onShow() {
    this.s
  },
  methods: {
    haha() {
      wx.requestSubscribeMessage({
        tmplIds: ['Cw1A8aqcvYqfkf3EI_4dYLUJ4GNktQF7yVjRaGnkCrM'],
        success(res) {},
      });
    },
  },
};
</script>

<style>
.box {
  width: 100px;
  height: 100rpx;
  background-color: red;
  margin-left: 200px;
  /* opacity:0; */
  transform: translateX(-500px);
}
.box {
  text-align: center;
  display: flex;
  flex-direction: column;
  color: aqua;
  padding: 20px;
}
</style>